package com.ruoyi.psi.purchase.pay.service;

import com.ruoyi.psi.purchase.pay.domain.PurchasePay;
import com.ruoyi.psi.purchase.pay.domain.PurchasePayList;
import com.ruoyi.psi.purchase.purchasereturn.domain.PurchaseReturnList;

import java.util.List;

/**
 * 采购付款/委外付款
 * 业务层
 * @author Drj 2021/6/28
 */
public interface IPurchasePayService {
    /**
     * 查询所有采购付款
     * @param purchasePay 搜索条件
     * @return
     */
    public List<PurchasePay> selectPurchasePayList(PurchasePay purchasePay);

    /**
     * 根据编号查询
     * @param purchasePayId 采购付款编号
     * @return
     */
    public PurchasePay selectPurchasePayById(String purchasePayId);

    /**
     * 新增采购付款
     * @param purchasePay
     * @return
     */
    public int insertPurchasePay(PurchasePay purchasePay) throws Exception;

    /**
     * 更新采购付款
     * @param purchasePay
     * @return
     */
    public int updatePurchasePay(PurchasePay purchasePay) throws Exception;

    /**
     * 删除采购付款
     * @param purchasePay
     * @return
     */
    public int updatePurchasePayDeleteFlag(PurchasePay purchasePay);

    /**
     * 新增付款单时查询对应采购订单、采购退货（委外订单暂定）
     * @param supplierInfoId
     * @return
     */
    public List<PurchasePayList> getPayBill(String supplierInfoId);

}
